package org.example.afiona.service;

import org.example.afiona.VO.SentinelOrderInfoVO;
import org.example.afiona.common.VO.ResultVO;
import org.example.afiona.service.hystirx.SentinelOrderFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: leo
 * @date: 2021/6/9
 */
@FeignClient(name = "provider-nacos-order"
        , fallback = SentinelOrderFeignHystrix.class)
public interface SentinelOrderFeignApi {
    @GetMapping("/order/list")
    ResultVO<List<SentinelOrderInfoVO>> getOrderListByUserId(@RequestParam("userId") Integer userId);
}